# vim:set noet ts=4:
#
# ibust - IBus with Traditional interface
#
# Copyright (c) 2013 Daniel Sun
# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2007-2010 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA

libibust = $(top_builddir)/src/libibust-@IBUST_API_VERSION@.la

INCLUDES = \
	-I$(top_srcdir)/src \
	-I$(top_builddir)/src \
	$(NULL)

immoduledir = @GTK3_IM_MODULEDIR@
immodule_LTLIBRARIES = im-ibust.la

im_ibust_la_SOURCES = \
	ibustim.c \
	ibustimcontext.c \
	ibustimcontext.h \
	$(NULL)

im_ibust_la_DEPENDENCIES = $(libibust)

im_ibust_la_CFLAGS = \
	@GTK3_CFLAGS@ \
	@DBUS_CFLAGS@ \
	-DG_LOG_DOMAIN=\"IBUST\" \
	$(NULL)

im_ibust_la_LIBADD = \
	@GTK3_LIBS@ \
	@DBUS_LIBS@ \
	$(libibust) \
	$(NULL)
im_ibust_la_LDFLAGS = \
	-avoid-version \
	-module \
	$(NULL)

$(libibust):
	(cd $(top_builddir)/src; make )

EXTRA_DIST = \
	$(NULL)

test: all
	GTK_IM_MODULE=ibust gedit

-include $(top_srcdir)/git.mk
